<template>
  <nav-bar>
    <div class="left-map" slot="left" @click="backClick">
      <van-icon name="arrow-left" />
      返回
    </div>
    <div class="center-map" slot="center">不凡</div>
  </nav-bar>
</template>

<script>
import NavBar from "@/components/navbar/NavBar.vue";
export default {
  name: "ProjectNavBar",
  components: {
    NavBar,
  },
  methods: {
    backClick() {
      this.$router.go(-1);
    },
  },
};
</script>


<style lang="scss" scoped>
.nav-bar {
  font-size: 16px;
  text-align: center;
  color: #f00;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  background-color: #fff;
  z-index: 2;
  .left-map {
    .van-icon {
      margin: 0 6px;
    }
    display: flex;
    align-items: center;
  }
}
</style>